package com.cssl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cssl.pojo.BasicOperational;

import java.util.List;

public interface BasicOperationalMapper extends BaseMapper<BasicOperational> {

    /**
     * 查询工艺路线列表
     *
     * @param basicOperational 工艺路线
     * @return 工艺路线集合
     */
    public List<BasicOperational> selectBasicOperationalList(BasicOperational basicOperational);

    /**
     * 根据产品ID查询工艺路线列表
     *
     * @param productId 产品ID
     * @return 工艺路线集合
     */
    public List<BasicOperational> selectBasicOperationalByProductId(Long productId);

    //查询工艺路线
    public List<BasicOperational> listBasicOperational(BasicOperational basicOperational);

    //删除工艺路线
    public int deleteBasicOperationalById(Long operational_id);



    //批量删除工艺路线
    public int deleteBatchBasicOperational(List<Long> operationalIds);

    //新增工艺路线
    public int insertBasicOperational(BasicOperational basicOperational);

    //更新工艺路线
    public int updateBasicOperational(BasicOperational basicOperational);

    //通过工艺路线id查询工艺路线信息
    public BasicOperational findByOperational_id(Long operational_id);


}